package org.dromara.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.GoodsCoupon;
import org.dromara.business.domain.bo.GoodsCouponBo;
import org.dromara.business.domain.vo.GoodsCouponVo;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 优惠券Service接口
 *
 * @author zlj
 * @date 2025-06-18
 */
public interface GoodsCouponService extends IService<GoodsCoupon> {

    /**
     * 查询优惠券
     */
    GoodsCouponVo queryById(Long couponId);

    /**
     * 查询优惠券列表
     */
    TableDataInfo<GoodsCouponVo> queryPageList(GoodsCouponBo bo, PageQuery pageQuery);

    /**
     * 查询优惠券列表
     */
    List<GoodsCouponVo> queryList(GoodsCouponBo bo);

    /**
     * 新增优惠券
     */
    Boolean insertByBo(GoodsCouponBo bo);

    /**
     * 修改优惠券
     */
    Boolean updateByBo(GoodsCouponBo bo);

    /**
     * 校验并批量删除优惠券信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<GoodsCouponVo> getCoupon();

}
